package model

import (
	"github.com/astaxie/beego/orm"
	_ "github.com/go-sql-driver/mysql"
)

type Users struct {
	Id         int64 `orm:"auto"`
	Username   string
	Password   string
	Tel        string
	Email      string
	UpdateTime string
	CreateTime string
}

func init() {
	orm.RegisterDriver("mysql", orm.DRMySQL)
	orm.RegisterDataBase("default", "mysql", "root:root@tcp(127.0.0.1:3306)/user")
	orm.RegisterModel(new(Users))
	orm.RunSyncdb("default", false, true)
	orm.Debug = true
}
